package net.freestu.sola.web.spider.urlfilter;

public class MyLink extends LinkFilter{
	
	private String theurl;
	private int state=URLSTOP;//将状态默认为STOP.
	
	public MyLink(String u){
		
		if(u==null){// 这个地方避免是null
		this.theurl="";	
		}else{
		this.theurl=u;
		}
	}
	
	public int getState(){
		
		return state;
	}
	
	public void setState(int i){
		
		this.state=i;
	}
		
	public void setState(){//这个函数一般不用。主要就屈就与抽象的LinkFilter类。
		state=URLSTOP;
	}	
		
	public String getContent(){
		
		return theurl;
	}
	
	public String getLinkAfterFilter(){
		
		return theurl;	
	}
	
}